package cn.sciento.boot.api.customize.groovy;

import org.kohsuke.groovy.sandbox.GroovyInterceptor;

public class NoRunTimeSandbox extends GroovyInterceptor {
  public Object onStaticCall(Invoker invoker, Class receiver, String method, Object... args) throws Throwable {
    if (receiver == Runtime.class)
      throw new SecurityException("No call on RunTime please"); 
    return super.onStaticCall(invoker, receiver, method, args);
  }
}
